# encoding: utf-8


"""

@author: tongzhenguo

@time: 2021/5/2 下午12:12

@desc:

封装全局变量
"""
import os

from date_util import now_year, now_date_fmt_8


def get_project_root():
    pwd = os.path.split(os.path.realpath(__file__))[0]
    return os.path.abspath(os.path.join(pwd, ".."))


PROJ_HOME = get_project_root()
ALL_STOCK_A_FILE = PROJ_HOME + "/data/A股上市公司列表.csv"
STOCK_FEATURE_FILE = PROJ_HOME + "/data/股票数据.csv"
STOCK_DAY_FEATURE_DIR = PROJ_HOME + "/data/日频数据"
TRADE_CAL_FILE = PROJ_HOME + "/data/交易日历_%s" % now_year()
STOCK_DAY_GZ_FEATURE_DIR = PROJ_HOME + "/data/日频数据/估值指标_%s" % now_date_fmt_8()
# print(PROJ_HOME)
